package com.fulllife.food.controller;

import com.fulllife.food.entity.MenuEntity;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.hswebframework.ezorm.rdb.mapping.ReactiveRepository;
import org.hswebframework.web.crud.web.reactive.ReactiveCrudController;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/api/menu")
@Tag(name = "菜品")
public class MenuController implements ReactiveCrudController<MenuEntity, String> {

    @Resource
    private ReactiveRepository<MenuEntity, String> reactiveRepository;

    @Override
    public ReactiveRepository<MenuEntity, String> getRepository() {
        return reactiveRepository;
    }

}
